package homework.billing.meter;

import homework.billing.meter.simple.SimpleTaxiMeter;

public class DidiMeter extends SimpleTaxiMeter {

    private float timeUnitPrice;

    public DidiMeter(float up, float tup) {
        super(0, 0, up);
        timeUnitPrice = tup;
    }

    @Override
    public double totalMinuteCost(float totalMinute) {
        return totalMinute * timeUnitPrice;
    }
}
